using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestDialogUIInfo : ViewInfo
{
    public override UILayer UILayer => UILayer.Bottom;

    public override string Path => "TestDialog";

    public override bool AllowMul => false;

    public override float SleepTime => 2;
}

public class TestDialog : GameDialog<TestView>
{
    private List<Color> _colors = new List<Color>()
    {
        Color.red,
        Color.green,
        Color.blue,
        Color.magenta,
        Color.cyan
    };

    public override void OnInit()
    {
        Color curColor = _colors[Random.Range(0, 3)];
        View.image.color = curColor;
    }

    public override void OnRelease()
    {

    }

    public override void OnShow()
    {

    }
}
